 const { csvModel } = require('../db/index')
 const Op = require('sequelize').Op
 const csv = require('csvtojson')

 
 async function queryAll(params) {
  const jsonArray= await csv().fromFile(__dirname + `/../uploads/${params.fileName}`);
  return jsonArray
 }
 
 module.exports = {
   queryAll,
 }
 